﻿namespace myLittleC
{
    enum Optimisers
    {
        None,
        LowLavel,
    }
    
    class CodeGenerator
    {
        public ICodeGenerator Generator { get; private set; }

        public CodeGenerator(ParserWithStatement iParser) : this(iParser, Optimisers.None){}

        public CodeGenerator(ParserWithStatement iParser, Optimisers LowOpt)
        {
            Generator = new AsmCodeGenerator(iParser, LowOpt);

        }


        public void Generate() {    Generator.Generate(); }

        public override string ToString() { return Generator.ToString();}
    }
}
